3.3.37 \(\int \frac {x^2 (a+b \log (c x^n))}{(d+e x^2)^3} \, dx\) [237]

3.3.37.1 Optimal result
3.3.37.2 Mathematica [B] (verified)
3.3.37.3 Rubi [A] (verified)
3.3.37.4 Maple [C] (warning: unable to verify)
3.3.37.5 Fricas [F]
3.3.37.6 Sympy [F]
3.3.37.7 Maxima [F(-2)]
3.3.37.8 Giac [F]
3.3.37.9 Mupad [F(-1)]

3.3.37.1 Optimal result

Integrand size = 23, antiderivative size = 187 \[ \int \frac {x^2 \left (a+b \log \left (c x^n\right )\right )}{\left (d+e x^2\right )^3} \, dx=\frac {b n x}{8 d e \left (d+e x^2\right )}-\frac {x \left (a+b \log \left (c x^n\right )\right )}{4 e \left (d+e x^2\right )^2}+\frac {x \left (a+b \log \left (c x^n\right )\right )}{8 d e \left (d+e x^2\right )}+\frac {\arctan \left (\frac {\sqrt {e} x}{\sqrt {d}}\right ) \left (a+b \log \left (c x^n\right )\right )}{8 d^{3/2} e^{3/2}}-\frac {i b n \operatorname {PolyLog}\left (2,-\frac {i \sqrt {e} x}{\sqrt {d}}\right )}{16 d^{3/2} e^{3/2}}+\frac {i b n \operatorname {PolyLog}\left (2,\frac {i \sqrt {e} x}{\sqrt {d}}\right )}{16 d^{3/2} e^{3/2}} \]

output
1/8*b*n*x/d/e/(e*x^2+d)-1/4*x*(a+b*ln(c*x^n))/e/(e*x^2+d)^2+1/8*x*(a+b*ln( 
c*x^n))/d/e/(e*x^2+d)+1/8*arctan(x*e^(1/2)/d^(1/2))*(a+b*ln(c*x^n))/d^(3/2 
)/e^(3/2)-1/16*I*b*n*polylog(2,-I*x*e^(1/2)/d^(1/2))/d^(3/2)/e^(3/2)+1/16* 
I*b*n*polylog(2,I*x*e^(1/2)/d^(1/2))/d^(3/2)/e^(3/2)
 
3.3.37.2 Mathematica [B] (verified)

Leaf count is larger than twice the leaf count of optimal. \(497\) vs. \(2(187)=374\).

Time = 0.61 (sec) , antiderivative size = 497, normalized size of antiderivative = 2.66 \[ \int \frac {x^2 \left (a+b \log \left (c x^n\right )\right )}{\left (d+e x^2\right )^3} \, dx=\frac {\frac {d \left (a+b \log \left (c x^n\right )\right )}{(-d)^{3/2} \left (\sqrt {-d}-\sqrt {e} x\right )^2}+\frac {a+b \log \left (c x^n\right )}{\sqrt {-d} \left (\sqrt {-d}+\sqrt {e} x\right )^2}-\frac {a+b \log \left (c x^n\right )}{\sqrt {-d} d-d \sqrt {e} x}+\frac {a+b \log \left (c x^n\right )}{\sqrt {-d} d+d \sqrt {e} x}+\frac {b d n \left (\log (x)-\log \left (\sqrt {-d}-\sqrt {e} x\right )\right )}{(-d)^{5/2}}+\frac {b n \left (\log (x)-\log \left (\sqrt {-d}+\sqrt {e} x\right )\right )}{(-d)^{3/2}}+\frac {b n \left (d+\left (d-\sqrt {-d} \sqrt {e} x\right ) \log (x)+\left (-d+\sqrt {-d} \sqrt {e} x\right ) \log \left (\sqrt {-d}+\sqrt {e} x\right )\right )}{d^2 \left (\sqrt {-d}+\sqrt {e} x\right )}+\frac {\left (a+b \log \left (c x^n\right )\right ) \log \left (1+\frac {\sqrt {e} x}{\sqrt {-d}}\right )}{(-d)^{3/2}}-\frac {b n \left (d+\left (d+\sqrt {-d} \sqrt {e} x\right ) \log (x)-\left (d+\sqrt {-d} \sqrt {e} x\right ) \log \left ((-d)^{3/2}+d \sqrt {e} x\right )\right )}{d^2 \left (\sqrt {-d}-\sqrt {e} x\right )}+\frac {d \left (a+b \log \left (c x^n\right )\right ) \log \left (1+\frac {d \sqrt {e} x}{(-d)^{3/2}}\right )}{(-d)^{5/2}}+\frac {b d n \operatorname {PolyLog}\left (2,\frac {\sqrt {e} x}{\sqrt {-d}}\right )}{(-d)^{5/2}}+\frac {b n \operatorname {PolyLog}\left (2,\frac {d \sqrt {e} x}{(-d)^{3/2}}\right )}{(-d)^{3/2}}}{16 e^{3/2}} \]

input
Integrate[(x^2*(a + b*Log[c*x^n]))/(d + e*x^2)^3,x]
 
output
((d*(a + b*Log[c*x^n]))/((-d)^(3/2)*(Sqrt[-d] - Sqrt[e]*x)^2) + (a + b*Log 
[c*x^n])/(Sqrt[-d]*(Sqrt[-d] + Sqrt[e]*x)^2) - (a + b*Log[c*x^n])/(Sqrt[-d 
]*d - d*Sqrt[e]*x) + (a + b*Log[c*x^n])/(Sqrt[-d]*d + d*Sqrt[e]*x) + (b*d* 
n*(Log[x] - Log[Sqrt[-d] - Sqrt[e]*x]))/(-d)^(5/2) + (b*n*(Log[x] - Log[Sq 
rt[-d] + Sqrt[e]*x]))/(-d)^(3/2) + (b*n*(d + (d - Sqrt[-d]*Sqrt[e]*x)*Log[ 
x] + (-d + Sqrt[-d]*Sqrt[e]*x)*Log[Sqrt[-d] + Sqrt[e]*x]))/(d^2*(Sqrt[-d] 
+ Sqrt[e]*x)) + ((a + b*Log[c*x^n])*Log[1 + (Sqrt[e]*x)/Sqrt[-d]])/(-d)^(3 
/2) - (b*n*(d + (d + Sqrt[-d]*Sqrt[e]*x)*Log[x] - (d + Sqrt[-d]*Sqrt[e]*x) 
*Log[(-d)^(3/2) + d*Sqrt[e]*x]))/(d^2*(Sqrt[-d] - Sqrt[e]*x)) + (d*(a + b* 
Log[c*x^n])*Log[1 + (d*Sqrt[e]*x)/(-d)^(3/2)])/(-d)^(5/2) + (b*d*n*PolyLog 
[2, (Sqrt[e]*x)/Sqrt[-d]])/(-d)^(5/2) + (b*n*PolyLog[2, (d*Sqrt[e]*x)/(-d) 
^(3/2)])/(-d)^(3/2))/(16*e^(3/2))
 
3.3.37.3 Rubi [A] (verified)

Time = 0.51 (sec) , antiderivative size = 187, normalized size of antiderivative = 1.00, number of steps used = 2, number of rules used = 2, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.087, Rules used = {2793, 2009}

Below are the steps used by Rubi to obtain the solution. The rule number used for the transformation is given above next to the arrow. The rules definitions used are listed below.

\(\displaystyle \int \frac {x^2 \left (a+b \log \left (c x^n\right )\right )}{\left (d+e x^2\right )^3} \, dx\)

\(\Big \downarrow \) 2793

\(\displaystyle \int \left (\frac {a+b \log \left (c x^n\right )}{e \left (d+e x^2\right )^2}-\frac {d \left (a+b \log \left (c x^n\right )\right )}{e \left (d+e x^2\right )^3}\right )dx\)

\(\Big \downarrow \) 2009

\(\displaystyle \frac {\arctan \left (\frac {\sqrt {e} x}{\sqrt {d}}\right ) \left (a+b \log \left (c x^n\right )\right )}{8 d^{3/2} e^{3/2}}+\frac {x \left (a+b \log \left (c x^n\right )\right )}{8 d e \left (d+e x^2\right )}-\frac {x \left (a+b \log \left (c x^n\right )\right )}{4 e \left (d+e x^2\right )^2}-\frac {i b n \operatorname {PolyLog}\left (2,-\frac {i \sqrt {e} x}{\sqrt {d}}\right )}{16 d^{3/2} e^{3/2}}+\frac {i b n \operatorname {PolyLog}\left (2,\frac {i \sqrt {e} x}{\sqrt {d}}\right )}{16 d^{3/2} e^{3/2}}+\frac {b n x}{8 d e \left (d+e x^2\right )}\)

input
Int[(x^2*(a + b*Log[c*x^n]))/(d + e*x^2)^3,x]
 
output
(b*n*x)/(8*d*e*(d + e*x^2)) - (x*(a + b*Log[c*x^n]))/(4*e*(d + e*x^2)^2) + 
 (x*(a + b*Log[c*x^n]))/(8*d*e*(d + e*x^2)) + (ArcTan[(Sqrt[e]*x)/Sqrt[d]] 
*(a + b*Log[c*x^n]))/(8*d^(3/2)*e^(3/2)) - ((I/16)*b*n*PolyLog[2, ((-I)*Sq 
rt[e]*x)/Sqrt[d]])/(d^(3/2)*e^(3/2)) + ((I/16)*b*n*PolyLog[2, (I*Sqrt[e]*x 
)/Sqrt[d]])/(d^(3/2)*e^(3/2))
 

3.3.37.3.1 Defintions of rubi rules used

rule 2009
Int[u_, x_Symbol] :> Simp[IntSum[u, x], x] /; SumQ[u]
 

rule 2793
Int[((a_.) + Log[(c_.)*(x_)^(n_.)]*(b_.))*((f_.)*(x_))^(m_.)*((d_) + (e_.)* 
(x_)^(r_.))^(q_.), x_Symbol] :> With[{u = ExpandIntegrand[a + b*Log[c*x^n], 
 (f*x)^m*(d + e*x^r)^q, x]}, Int[u, x] /; SumQ[u]] /; FreeQ[{a, b, c, d, e, 
 f, m, n, q, r}, x] && IntegerQ[q] && (GtQ[q, 0] || (IntegerQ[m] && Integer 
Q[r]))
 
3.3.37.4 Maple [C] (warning: unable to verify)

Result contains higher order function than in optimal. Order 9 vs. order 4.

Time = 0.65 (sec) , antiderivative size = 826, normalized size of antiderivative = 4.42

method result size
risch \(-\frac {b n \ln \left (x \right ) x^{3}}{2 d \left (e \,x^{2}+d \right )^{2}}+\frac {b \,x^{3} \ln \left (x^{n}\right )}{8 \left (e \,x^{2}+d \right )^{2} d}-\frac {b n \ln \left (x \right ) x}{2 e \left (e \,x^{2}+d \right )^{2}}-\frac {b x \ln \left (x^{n}\right )}{8 \left (e \,x^{2}+d \right )^{2} e}-\frac {b \arctan \left (\frac {x e}{\sqrt {d e}}\right ) n \ln \left (x \right )}{8 e d \sqrt {d e}}+\frac {b \arctan \left (\frac {x e}{\sqrt {d e}}\right ) \ln \left (x^{n}\right )}{8 e d \sqrt {d e}}+\frac {b n x}{8 d e \left (e \,x^{2}+d \right )}-\frac {3 b n e \ln \left (x \right ) \ln \left (\frac {-e x +\sqrt {-d e}}{\sqrt {-d e}}\right ) x^{4}}{16 d \left (e \,x^{2}+d \right )^{2} \sqrt {-d e}}+\frac {3 b n e \ln \left (x \right ) \ln \left (\frac {e x +\sqrt {-d e}}{\sqrt {-d e}}\right ) x^{4}}{16 d \left (e \,x^{2}+d \right )^{2} \sqrt {-d e}}-\frac {3 b n \ln \left (x \right ) \ln \left (\frac {-e x +\sqrt {-d e}}{\sqrt {-d e}}\right ) x^{2}}{8 \left (e \,x^{2}+d \right )^{2} \sqrt {-d e}}+\frac {3 b n \ln \left (x \right ) \ln \left (\frac {e x +\sqrt {-d e}}{\sqrt {-d e}}\right ) x^{2}}{8 \left (e \,x^{2}+d \right )^{2} \sqrt {-d e}}-\frac {3 b n d \ln \left (x \right ) \ln \left (\frac {-e x +\sqrt {-d e}}{\sqrt {-d e}}\right )}{16 e \left (e \,x^{2}+d \right )^{2} \sqrt {-d e}}+\frac {3 b n d \ln \left (x \right ) \ln \left (\frac {e x +\sqrt {-d e}}{\sqrt {-d e}}\right )}{16 e \left (e \,x^{2}+d \right )^{2} \sqrt {-d e}}+\frac {b n \operatorname {dilog}\left (\frac {-e x +\sqrt {-d e}}{\sqrt {-d e}}\right )}{16 d e \sqrt {-d e}}-\frac {b n \operatorname {dilog}\left (\frac {e x +\sqrt {-d e}}{\sqrt {-d e}}\right )}{16 d e \sqrt {-d e}}+\frac {b n \ln \left (x \right ) \ln \left (\frac {-e x +\sqrt {-d e}}{\sqrt {-d e}}\right ) x^{2}}{4 d \left (e \,x^{2}+d \right ) \sqrt {-d e}}-\frac {b n \ln \left (x \right ) \ln \left (\frac {e x +\sqrt {-d e}}{\sqrt {-d e}}\right ) x^{2}}{4 d \left (e \,x^{2}+d \right ) \sqrt {-d e}}+\frac {b n \ln \left (x \right ) x}{2 e d \left (e \,x^{2}+d \right )}+\frac {b n \ln \left (x \right ) \ln \left (\frac {-e x +\sqrt {-d e}}{\sqrt {-d e}}\right )}{4 e \left (e \,x^{2}+d \right ) \sqrt {-d e}}-\frac {b n \ln \left (x \right ) \ln \left (\frac {e x +\sqrt {-d e}}{\sqrt {-d e}}\right )}{4 e \left (e \,x^{2}+d \right ) \sqrt {-d e}}+\left (-\frac {i b \pi \,\operatorname {csgn}\left (i c \right ) \operatorname {csgn}\left (i x^{n}\right ) \operatorname {csgn}\left (i c \,x^{n}\right )}{2}+\frac {i b \pi \,\operatorname {csgn}\left (i c \right ) \operatorname {csgn}\left (i c \,x^{n}\right )^{2}}{2}+\frac {i b \pi \,\operatorname {csgn}\left (i x^{n}\right ) \operatorname {csgn}\left (i c \,x^{n}\right )^{2}}{2}-\frac {i b \pi \operatorname {csgn}\left (i c \,x^{n}\right )^{3}}{2}+b \ln \left (c \right )+a \right ) \left (\frac {\frac {x^{3}}{8 d}-\frac {x}{8 e}}{\left (e \,x^{2}+d \right )^{2}}+\frac {\arctan \left (\frac {x e}{\sqrt {d e}}\right )}{8 e d \sqrt {d e}}\right )\) \(826\)

input
int(x^2*(a+b*ln(c*x^n))/(e*x^2+d)^3,x,method=_RETURNVERBOSE)
 
output
-1/2*b*n/d*ln(x)/(e*x^2+d)^2*x^3+1/8*b/(e*x^2+d)^2/d*x^3*ln(x^n)-1/2*b*n/e 
*ln(x)/(e*x^2+d)^2*x-1/8*b/(e*x^2+d)^2*x/e*ln(x^n)-1/8*b/e/d/(d*e)^(1/2)*a 
rctan(x*e/(d*e)^(1/2))*n*ln(x)+1/8*b/e/d/(d*e)^(1/2)*arctan(x*e/(d*e)^(1/2 
))*ln(x^n)+1/8*b*n*x/d/e/(e*x^2+d)-3/16*b*n/d*e*ln(x)/(e*x^2+d)^2/(-d*e)^( 
1/2)*ln((-e*x+(-d*e)^(1/2))/(-d*e)^(1/2))*x^4+3/16*b*n/d*e*ln(x)/(e*x^2+d) 
^2/(-d*e)^(1/2)*ln((e*x+(-d*e)^(1/2))/(-d*e)^(1/2))*x^4-3/8*b*n*ln(x)/(e*x 
^2+d)^2/(-d*e)^(1/2)*ln((-e*x+(-d*e)^(1/2))/(-d*e)^(1/2))*x^2+3/8*b*n*ln(x 
)/(e*x^2+d)^2/(-d*e)^(1/2)*ln((e*x+(-d*e)^(1/2))/(-d*e)^(1/2))*x^2-3/16*b* 
n*d/e*ln(x)/(e*x^2+d)^2/(-d*e)^(1/2)*ln((-e*x+(-d*e)^(1/2))/(-d*e)^(1/2))+ 
3/16*b*n*d/e*ln(x)/(e*x^2+d)^2/(-d*e)^(1/2)*ln((e*x+(-d*e)^(1/2))/(-d*e)^( 
1/2))+1/16*b*n/d/e/(-d*e)^(1/2)*dilog((-e*x+(-d*e)^(1/2))/(-d*e)^(1/2))-1/ 
16*b*n/d/e/(-d*e)^(1/2)*dilog((e*x+(-d*e)^(1/2))/(-d*e)^(1/2))+1/4*b*n*ln( 
x)/d/(e*x^2+d)/(-d*e)^(1/2)*ln((-e*x+(-d*e)^(1/2))/(-d*e)^(1/2))*x^2-1/4*b 
*n*ln(x)/d/(e*x^2+d)/(-d*e)^(1/2)*ln((e*x+(-d*e)^(1/2))/(-d*e)^(1/2))*x^2+ 
1/2*b*n/e*ln(x)/d/(e*x^2+d)*x+1/4*b*n/e*ln(x)/(e*x^2+d)/(-d*e)^(1/2)*ln((- 
e*x+(-d*e)^(1/2))/(-d*e)^(1/2))-1/4*b*n/e*ln(x)/(e*x^2+d)/(-d*e)^(1/2)*ln( 
(e*x+(-d*e)^(1/2))/(-d*e)^(1/2))+(-1/2*I*b*Pi*csgn(I*c)*csgn(I*x^n)*csgn(I 
*c*x^n)+1/2*I*b*Pi*csgn(I*c)*csgn(I*c*x^n)^2+1/2*I*b*Pi*csgn(I*x^n)*csgn(I 
*c*x^n)^2-1/2*I*b*Pi*csgn(I*c*x^n)^3+b*ln(c)+a)*((1/8/d*x^3-1/8*x/e)/(e*x^ 
2+d)^2+1/8/e/d/(d*e)^(1/2)*arctan(x*e/(d*e)^(1/2)))
 
3.3.37.5 Fricas [F]

\[ \int \frac {x^2 \left (a+b \log \left (c x^n\right )\right )}{\left (d+e x^2\right )^3} \, dx=\int { \frac {{\left (b \log \left (c x^{n}\right ) + a\right )} x^{2}}{{\left (e x^{2} + d\right )}^{3}} \,d x } \]

input
integrate(x^2*(a+b*log(c*x^n))/(e*x^2+d)^3,x, algorithm="fricas")
 
output
integral((b*x^2*log(c*x^n) + a*x^2)/(e^3*x^6 + 3*d*e^2*x^4 + 3*d^2*e*x^2 + 
 d^3), x)
 
3.3.37.6 Sympy [F]

\[ \int \frac {x^2 \left (a+b \log \left (c x^n\right )\right )}{\left (d+e x^2\right )^3} \, dx=\int \frac {x^{2} \left (a + b \log {\left (c x^{n} \right )}\right )}{\left (d + e x^{2}\right )^{3}}\, dx \]

input
integrate(x**2*(a+b*ln(c*x**n))/(e*x**2+d)**3,x)
 
output
Integral(x**2*(a + b*log(c*x**n))/(d + e*x**2)**3, x)
 
3.3.37.7 Maxima [F(-2)]

Exception generated. \[ \int \frac {x^2 \left (a+b \log \left (c x^n\right )\right )}{\left (d+e x^2\right )^3} \, dx=\text {Exception raised: ValueError} \]

input
integrate(x^2*(a+b*log(c*x^n))/(e*x^2+d)^3,x, algorithm="maxima")
 
output
Exception raised: ValueError >> Computation failed since Maxima requested 
additional constraints; using the 'assume' command before evaluation *may* 
 help (example of legal syntax is 'assume(e>0)', see `assume?` for more de 
tails)Is e
 
3.3.37.8 Giac [F]

\[ \int \frac {x^2 \left (a+b \log \left (c x^n\right )\right )}{\left (d+e x^2\right )^3} \, dx=\int { \frac {{\left (b \log \left (c x^{n}\right ) + a\right )} x^{2}}{{\left (e x^{2} + d\right )}^{3}} \,d x } \]

input
integrate(x^2*(a+b*log(c*x^n))/(e*x^2+d)^3,x, algorithm="giac")
 
output
integrate((b*log(c*x^n) + a)*x^2/(e*x^2 + d)^3, x)
 
3.3.37.9 Mupad [F(-1)]

Timed out. \[ \int \frac {x^2 \left (a+b \log \left (c x^n\right )\right )}{\left (d+e x^2\right )^3} \, dx=\int \frac {x^2\,\left (a+b\,\ln \left (c\,x^n\right )\right )}{{\left (e\,x^2+d\right )}^3} \,d x \]

input
int((x^2*(a + b*log(c*x^n)))/(d + e*x^2)^3,x)
 
output
int((x^2*(a + b*log(c*x^n)))/(d + e*x^2)^3, x)